package com.mapull.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;
import javax.validation.constraints.Size;

/**
 * @author: mapull
 * @description: Product
 * @date:2020/03/14
 **/
@Data
@AllArgsConstructor
public class Product {

    @NotBlank
    @Min(1)
    private double price;

    @Size(min = 2, max = 128)
    private String name;
}
